feat(docs): Adds /no-iframe/ flag to topics/ README's videos we don't… #1380
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
… want the parser to turn into iframes
@unjust este es un PR que va en conjunto con este otro PR a tu rama de transformar links de tu fork del repo de
currículum-parser
, entre ambos solucionan el issue que habíamos conversado sobre no mostrar videos en ciertas circunstancias, como en listas, funciona simplemente agregando un flag (string
)/no-iframe/
al final del atributotítulo
de cada link y luego agregando esa condición a la función que transforma los links eniframes
.busqué todos los links que tuvieran la
string
"youtu" y "vimeo" y que fueran parte de un link en markdown que estuviera en una lista utilizando la siguiente expresión regular:(?:^[*-]\s*\[[^\]]+\]\((?:[^)]*(youtu|vimeo)[^)]*)\)|^\|\s*\[[^\]]+\]\((?:[^)]*(youtu|vimeo)[^)]*)\))
espero no se me hayan escapado muchos otros casos 😁
entonces las listas que se veían así:
con estos cambios ya se ven así: